Ваша задача — воспроизвести функционал метода title(), создав функцию emphasise(). Метод title() делает заглавной первую букву каждого слова, все остальные буквы переводятся в нижний регистр.
Примечания:
- С цифрами и прочими символами ничего делать не надо, работаем только с буквами. - Пожалуйста, не используйте сам метод title()!
Примеры:
emphasise("hello world") ➞ "Hello World" emphasise("GOOD MORNING") ➞ "Good Morning" emphasise("99 red balloons!") ➞ "99 Red Balloons!"
Ваша задача — воспроизвести функционал метода title(), создав функцию emphasise(). Метод title() делает заглавной первую букву каждого слова, все остальные буквы переводятся в нижний регистр.
Примечания:
- С цифрами и прочими символами ничего делать не надо, работаем только с буквами. - Пожалуйста, не используйте сам метод title()!
Примеры:
emphasise("hello world") ➞ "Hello World" emphasise("GOOD MORNING") ➞ "Good Morning" emphasise("99 red balloons!") ➞ "99 Red Balloons!"
The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.
Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.Pythonist ru образование по питону from ar